using System;
using System.Collections.Generic;
using System.Text;

using Weazel.Gezel.Simulator.Reference;
using Weazel.Microblaze.Simulator.Engine;

namespace Weazel.Microblaze.Simulator.Components.Gezel
{
    public class UnsupportedIpBlockException
        : Exception
    {
        private static string FormatMessage(AbstractIpBlock ipBlock)
        {
            return string.Format("Ip-block '{0}' is not supported by the simulation framework", 
                ipBlock.GetType().ToString());
        }

        public UnsupportedIpBlockException(AbstractIpBlock ipBlock)
            : base(FormatMessage(ipBlock))
        {             
        }
    }
}
